#include "include.h"
#include "func.h"
#include "func_music.h"
#include "func_exspiflash_demo.h"

#if 0//(EX_SPIFLASH_SUPPORT)
extern void func_demo_lower_power_check(void);

AT(.text.func.demo.msg)
void func_exspifalsh_demo_message(u16 msg)
{
    switch (msg) {
        case K_SONG:
		case KU_BT:
		case KU_MIC:
			exspifalsh_demo_switch_file(1);
			break;
		case KU_LIGHT:
			func_demo_sfx_ctl();
			break;
		case KL_LIGHT:
			break;
		case KU_POWER:
			if(demo_msc.longkey_wakeup)
			{
				demo_msc.longkey_wakeup=0;
			}
        case KL_POWER:
			if(demo_msc.longkey_wakeup)
			{
				break;
			}
			music_control(MUSIC_MSG_STOP);
			sys_cb.pwrdwn_tone_en = 1;
			func_cb.sta =FUNC_PWROFF;
			break;
		case KLU_POWER:
			if(demo_msc.longkey_wakeup)
			{
				demo_msc.longkey_wakeup=0;
			}
			break;
		case MSG_SYS_1S:
			func_demo_lower_power_check();
			func_demo_check_timeout();
			break;
        default:
			//auto_stop_play_timer();
            //non_volatile_memory();
            func_message(msg);
            break;
    }
}
#endif //(EX_SPIFLASH_SUPPORT & EXSPI_MUSIC)

